package com.djj.nanny.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.djj.nanny.entity.ServiceCategory;

import java.util.List;

public interface ServiceCategoryService {
    void createCategory(ServiceCategory category);

    void updateCategory(ServiceCategory category);

    ServiceCategory getCategoryById(Long id);

    List<ServiceCategory> getCategoryTree();

    void deleteCategory(Long id);

    List<ServiceCategory> getChildCategories(Long parentId);

    Page<ServiceCategory> getCategoriesByPage(String categoryName, Integer status,
     Integer pageNum, Integer pageSize);

    void batchDeleteCategories(List<Long> ids);
} 